<!-- 页面：例如 pages/index/index.vue -->
<template>
  <view class="parent-container">
    <view class="list">
      <cellItem1 :list="list"/>
    </view>
  </view>
</template>

<script setup>
import cellItem1 from "@/components/cellItem1/index"
import { ref, onMounted } from 'vue'
import { useRouter } from 'uni-mini-router'

const router = useRouter()

// 列表数据
const list = ref([
    {
      id: 1,
      icon: 'icon-yiyuan2',
      title: '医院预约',
      desc: '支持三甲医院在线挂号，支持医保支付',
      pathName:"common_pointsSupermarket",
      name:"yiyuan_yuyue"
    },
    {
      id: 2,
      icon: 'icon-yaodian',
      title: '药店超市',
      desc: '常用药品、健康用品一站式购买',
      pathName:"common_pointsSupermarket",
      name:"yaodian_chaoshi"
    }
  ])

// 模拟数据（新增 desc 字段）
onMounted(() => {
})

const navigationUrl=(item)=>{
  router.push({
    name:item.pathName,
    params:{
      name:item.name
    }
  })
}
</script>

<style scoped lang="less">
@import '@/static/styles/colors.less';

.list {
  padding: 0 30rpx;
}

</style>